package com.shigu.account.enums;

/**
 * @author 郭尔
 * @description 佣金清单状态
 * @date 2019-04-30 15:56
 */
public enum CommissionOrderState {
    WAIT(1,"待收货,待发货"),
    COMPLETE(2,"已完成"),
    REFUND(3,"已退款");

    public static CommissionOrderState selByValue(int value){
        for(CommissionOrderState pt: CommissionOrderState.values()){
            if(pt.getValue()==value){
                return pt;
            }
        }
        return null;
    }


    CommissionOrderState(int value, String title) {
        this.value = value;
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    private int value;
    private String title;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    }
